package com.keta.foundation.service;

import java.util.List;

import org.springframework.data.jpa.domain.Specification;

import com.keta.foundation.entity.Dict;
import com.keta.foundation.util.dwz.Page;


public interface DictService {

	public List<Dict> getAll(Specification<Dict> specification, Page page);
	
	public List<Dict> getDictItem(Long dictId);
	
	public boolean isExistDictCode(String code);
	
	public boolean isExistItemCode(Long dictId,String itemCode);
	
	public void saveOrUpdate(Dict dit);
	
	public void saveOrUpdateItem(Dict item,Long dictId);
	
	public Dict getById(Long id);
	
	public void delete(Long id);
	
	public void delete(Dict dict);
	
	public List<Dict> treeToList(List<Dict> list);

}
